SRC := example.c
OBJ := $(SRC:.c=.o)
TARGET := helloworld

.PHONY: all

all: $(TARGET)

clean:
	$(RM) $(TARGET) $(OBJ)

$(TARGET): $(OBJ)
	$(CC) -o $@ $^